import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { crx } from '@crxjs/vite-plugin'
import manifest from './manifest.json'

export default defineConfig({
    plugins: [
        vue(),
        crx({ manifest })
    ],
    build: {
        rollupOptions: {
            input: {
                sidepanel: 'index.html',
                background: 'src/background.js',
                content: 'src/content.js'
            }
        }
    }
}) 